package com.example.demo.autorun;

import org.apache.log4j.Logger;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * Created by guofs on 2017/6/28.
 */
@Component
@Order(value=2)
public class SecondRun implements CommandLineRunner {
    private static final Logger LOGGER = Logger.getLogger(SecondRun.class);
    @Override
    public void run(String... args) throws Exception {
        LOGGER.info(">>>>>>>>>>>>>>>排在第2启动<<<<<<<<<<<<<");
    }
}
